﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    public class OperatorLog
    {
        /// <summary>
        /// 日志ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long LogId { get; set; }
        /// <summary>        
        ///操作用户
        /// </summary>
        public string UserName { get; set; }
        /// <summary>        
        ///用户角色
        /// </summary>
        public string Role { get; set; }
        /// <summary>        
        ///操作日志
        /// </summary>
        public string Message { get; set; }
        /// <summary>        
        ///用户IP
        /// </summary>
        public string Ip { get; set; }
        /// <summary>        
        ///目标地址
        /// </summary>
        public string Location { get; set; }
        /// <summary>        
        ///浏览器
        /// </summary>
        public string Browser { get; set; }
        /// <summary>        
        ///操作系统
        /// </summary>
        public string Os { get; set; }
        /// <summary>        
        ///目标类名
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>        
        ///目标方法名
        /// </summary>
        public string MethodName { get; set; }
        /// <summary>        
        ///Http请求方法
        /// </summary>
        public string HttpMthod { get; set; }
        /// <summary>        
        ///请求参数
        /// </summary>
        public string RequestParams { get; set; }
        /// <summary>        
        ///执行结果
        /// </summary>
        public string Result { get; set; }
        /// <summary>        
        ///耗时时长
        /// </summary>
        public int ElapsedTime { get; set; }
        /// <summary>        
        ///操作时间
        /// </summary>
        public DateTime OpTime { get; set; }
        /// <summary>        
        ///是否成功
        /// </summary>
        public bool Success { get; set; }
    }
}
